<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width">
	<title><?php wp_title( '|', true, 'right' ); ?></title>
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
	<!--[if lt IE 9]>
	<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
	<![endif]-->
	<?php wp_head();
	?>
</head>

<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
	<header class = "site-header container">
		<?php 
			$header_settings = get_option('larch_admin_header_options');
		?>
		<aside class= "user-options row">
			<section class="social-icons row col-md-10" >
			<?php if($header_settings['larch_show_social_icons']): ?>
			<a href ="https:\\<?php echo $header_settings['larch_url_fb']; ?>"><img class = "col-md-1" src="<?php echo get_template_directory_uri().'/assets/img/facebook.png';?>"></a>
			<a href ="https:\\<?php echo $header_settings['larch_url_twitter']; ?>"><img class = "col-md-1" src="<?php echo get_template_directory_uri().'/assets/img/twitter.png';?>"></a>
			<?php endif; ?>
			</section>
			<span class="fakelink col-md-1">help</span>
			<span class="fakelink col-md-1">login</span>
		</aside>
		
		<section class="company-info row">
			<?php if($header_settings['larch_company_logo']): ?>
				<a href ="<?php bloginfo('url'); ?>" title ="Go Home"><img class="site-logo col-md-2" src ="<?php echo get_template_directory_uri().'/assets/img/sampl.png'; ?>" alt="Logo"/></a>
			<?php else: ?>
				<h1><a href = "<?php bloginfo( 'url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
			<?php endif; ?>
			<?php if($header_settings['larch_contact_info']): ?>
			<p class="contact col-md-2 col-md-offset-8">
				<span class="address-info"><?php echo $header_settings['larch_company_address']; ?></span>
				<span class="contact-info"><?php echo $header_settings['larch_company_tel']; ?></span>
				<span class="email-info"><?php echo $header_settings['larch_company_email']; ?></span>
			</p>
			<?php endif; ?>
			<?php get_search_form(); ?>
		</section>
		<nav class="main-navigation navbar navbar-default">
			<?php 
			wp_nav_menu(array('container'=>'','menu_class'=>'nav nav-pills','theme_location'=>'primary','walker'=>new Larch_Walker_Nav_Menu())); ?>
		</nav>
	</header>

	<div id="main" class="site-main">
